__author__ = 'lukasz'

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from models import PublicationPlugin
from django.utils.translation import ugettext as _

class CMSPublicationPlugin(CMSPluginBase):
    model = PublicationPlugin
    name = _("Publikacje")
    render_template = "publications_view.html"
    def render(self, context, instance, placeholder):
        print 'mmmmmmmm'
        context.update({
            'pub':instance.author,
            'object':instance,
            'placeholder':placeholder
        })
        return context

#plugin_pool.register_plugin(CMSPublicationPlugin)
